package com.csvvip.cloud.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "cloud-provider-hystrix-payment8001" , fallback = PaymentHystrixServiceException.class)
public interface PaymentHystrixService {

    @GetMapping("/payment_ok/get/{id}")
    String payment_ok(@PathVariable("id") Long id);

    @GetMapping("/payment_timeout/get/{id}")
    String payment_timeout(@PathVariable("id") Long id);

}
